Skip to main content

M-Pesa Statement Analysis

POST https://api.manka.tz/api/v1/analysis/2d

This analyses the pdf and generates the report. The response is in a json format.

Header Requirements

  • Authorization --required

Body Params

  • file --required
  • fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/2d'
-F fullname=Hussein \
-F 'file=@M_Pesa_789981_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \'

Response Sample

  1. Status OK Response
200 OK
{
"total_cash_inflow": 21676377.0,
"cash_inflow": {
"bank_to_wallet": {
"total_amout": 3005499.0,
"percentage_of_total": 13.87
},
"agent_deposit": {
"total_amout": 4560000.0,
"percentage_of_total": 21.04
},
"p2p_received": {
"total_amout": 6944688.0,
"percentage_of_total": 32.04
},
"other_cashin_flow": {
"total_amout": 1826885.0,
"percentage_of_total": 8.43
},
"loan_disbursements": {
"total_amout": 5339305.0,
"percentage_of_total": 24.63
}
},
"total_cash_outflow": 21384067.0,
"cash_outflow": {
"luku": {
"total_amout": 85000.0,
"percentage_of_total": 0.4
},
"p2p_sent": {
"total_amout": 2687500.0,
"percentage_of_total": 12.57
},
"wallet_to_bank": {
"total_amout": 225000.0,
"percentage_of_total": 1.05
},
"agent_withdrawal": {
"total_amout": 622500.0,
"percentage_of_total": 2.91
},
"lipa": {
"total_amout": 2273800.0,
"percentage_of_total": 10.63
},
"bill_payment": {
"total_amout": 6149700.0,
"percentage_of_total": 28.76
},
"other_cashout_flow": {
"total_amout": 3618211.0,
"percentage_of_total": 16.92
},
"loan_repayments": {
"total_amout": 5722356.0,
"percentage_of_total": 26.76
}
}
}